var app =new Vue({
	el:"#container",
	data: {
		listhui:[],
		jieguo : "",
		ww : ""
		
	},
	mounted() {
		this.selecthui();
	},
	methods:{
		selecthui(userName){
			let data= new URLSearchParams;
			data.append("pageNum",1),
			data.append("pageSize",10),
			data.append("userName",userName);
			axios({
				method : "post",
				url : "laifang/selectThree",
				data : data
			}).then(response=>{
				this.listhui=response.data.data
			})
		},
		chaxun(){
			this.selecthui(app.ww)
		},
		dengjiru(a){
			alert(a)
			let data1=new URLSearchParams;
			data1.append("id",a),
			axios({
				method : "post",
				url : "laifang/upvisitor",
				data : data1,
			}).then(response=>{
				this.selecthui();
			})
		}
		
	}
})